package com.mf.entity.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;

/**
 * @Author: lmf
 * @Create: 2024/8/23 13:20
 * Description:
 */

@Getter
public class BasicDataDictionaryRequest {
    @Schema(description = "字典id")
    private Integer id;

    @Schema(description = "字典名称")
    @NotBlank(message = "字典名称不能为空")
    private String label;

    @Schema(description = "编号")
    @NotBlank(message = "编号不能为空")
    private String code;

    @Schema(description = "字典值")
    private String value;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "父级id")
    private Integer pid;

    @Schema(description = "编辑角色id")
    private String editRoleId;

    @Schema(description = "0:所有用户可见；1:对应操作者(角色)可见")
    private Integer type;
}
